package com.rainbow.common;

import com.rainbow.entity.User;
import org.springframework.security.core.context.SecurityContextHolder;

/**
 * @Author rainbow
 **/
public class UserUtils {

    public static User getCurrentHr() {
        return (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
